package com.ksr.logistics.service;

import com.ksr.logistics.pojo.Order;
import com.ksr.logistics.pojo.OrderDetail;

import java.util.List;

public interface OrderService {

    List<Order> selPageOrders(Integer page, Integer pageSize, String keyWord);

    List<OrderDetail> selOrderDetailByOrderId(Long orderId);

    OrderDetail selOrderDetailByDetailId(Long id);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    Order selById(Long id);

    int insertOrder(Order order);

    int updateOrder(Order order);

    int deleteDetailById(Long id);

    int insertOrderDetail(OrderDetail orderDetail);

    int updateOrderDetail(OrderDetail orderDetail);
}
